
package com.insigma.business.qrcode.soldier.dao;



import com.insigma.business.qrcode.soldier.dto.PlacementBatchBSearcher;
import com.insigma.business.qrcode.soldier.entity.PlacementBatchDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PlacementBatchDao {

    
    List<PlacementBatchDO> search(final PlacementBatchBSearcher innerSearcher);

    
    PlacementBatchDO get(final String id);

    
    Integer insert(final PlacementBatchDO placementBatchDO);

    
    Integer update(final PlacementBatchDO placementBatchDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    List<PlacementBatchDO> listByPlacementId(String id);

    PlacementBatchDO getByPlacementIdAndType(@Param("id")String id, @Param("type")String type);

    
    PlacementBatchDO getCurrentBatch(String placementId);


}
